<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<h1>Reservation</h1>

<div class="main">
    <div class="box_side search_hotel clearfix">
        <form action="list.dhtml">
            <ul>
                <li><label>Passport：</label>
                    <s:textfield name="condition.hotelPassport" cssClass="text"/>
                </li>
                <li><label>Ersp：</label>
                    <s:textfield name="condition.ersp" cssClass="text"/>
                </li>
                <li><label>Confirm No.：</label>
                    <s:textfield name="condition.confirmNumber" cssClass="text"/>
                </li>
                <li><label>Cancel No.：</label>
                    <s:textfield name="condition.cancelNo" cssClass="text"/>
                </li>
            </ul>
            <input type="submit" value="Search" class="common_button"/>
        </form>
    </div>
</div>
<div class="main">
    <jsp:include page="../../common/pagination.jsp"/>
    <table id="channel" class="table_list" cellpadding="0" cellspacing="0">
        <thead>
        <tr>
            <th>Ersp No</th>
            <th>Hotel Code</th>
            <th>Confirm No.</th>
            <th>Cancel No.</th>
            <th>Create Time</th>
            <th>Cancel Time</th>
        </tr>
        </thead>
        <tbody>
        <s:iterator value="paginater.objects">
            <tr
                <s:if test="bookingReference==null">style="color: #ff0000;</s:if>">
                <td><a <s:if test="bookingReference==null">style="color: #ff0000;</s:if>" href="view.dhtml?condition.ersp=${ersp}">${ersp}</a></td>
                <td>${hotelPassport}</td>
                <td>${bookingReference}</td>
                <td>${cancellationReference}</td>
                <td><s:date name="createTime" format="yyyy-MM-dd HH:mm:ss"/></td>
                <td><s:date name="cancelTime" format="yyyy-MM-dd HH:mm:ss"/></td>
            </tr>
        </s:iterator>
        </tbody>
    </table>
    <jsp:include page="../../common/pagination.jsp"/>
</div>

